package com.cy.service;

import com.alibaba.csp.sentinel.annotation.SentinelResource;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @ClassName ConsumerService
 * @Description:类描述
 * @Author Tedu
 * @Date 2021/6/1 18:29
 * @Version V1.0
 **/
@Service
public class ConsumerService {
    //@SentinelResource链路模式限流测试
    @SentinelResource("doGetResource")
    public String doGetResource(){
        System.out.println("doGetResource");
        return "doGetResource";
    }



}
